Skip to content

Add configurable backgrounds and command point shields#17

Merged
fmolinagomez merged 2 commits into
masterfrom
codex/refactor-code-and-add-functionality-jnog4t
Oct 6, 2025
Merged

Add configurable backgrounds and command point shields#17
fmolinagomez merged 2 commits into
masterfrom
codex/refactor-code-and-add-functionality-jnog4t

Conversation

@fmolinagomez

Copy link
Copy Markdown
Owner

Summary

  • parse the optional background_color field into card models with a helper to convert it to RGB values
  • paint non-full-frame renders using the configured background colour while updating the docs and sample data
  • add unit tests covering both the model defaults and the rendering behaviour (skipping when cairo is unavailable)
  • rename manaCost to commandPoints, mapping legacy data and documenting the new JSON schema
  • render command points inside a black-bordered shield and extend the model tests to cover the new parsing rules

Testing

  • pytest

https://chatgpt.com/codex/tasks/task_e_68e3c63c2b3c832eafdf668c737737e1

@fmolinagomez fmolinagomez merged commit 695b9e8 into master Oct 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant